const mongoose = require('mongoose');
const { baseModel } = require('./baseModel')

const callSchema = new mongoose.Schema({
    // 公告标题
    title:{
        required:true,
        type:String
    },
    // 公告内容
    content:{
        required:true,
        type:String
    },
    //发布者
    docId:{
        required:true,
        type:mongoose.Schema.Types.ObjectId,
        ref:'Hospital'
    },
    ...baseModel
})

module.exports = callSchema